#include "client.hpp"

void Usage(const std::string proc)
{
    std::cout << "\n\t" << proc << "serverIp serverPort" << std::endl;
}

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[1]);
        exit(USER_ERR);
    }
    std::string serverIp = argv[1];
    uint16_t serverPort = atoi(argv[2]);
    ns_client* client = new ns_client(serverIp,serverPort);
    client->init();
    client->start();
    delete client;
    return 0;
}